<div class="ordenes view">
<h2><?php  __('Ordene');?></h2>
	<table<?php $i = 0; $class = ' class="altrow"';?>
>
		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ordene['Ordene']['id']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Nu Orden'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ordene['Ordene']['nu_orden']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Solpa'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ordene['Ordene']['solpa']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Nu Aceptacion Sap'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ordene['Ordene']['nu_aceptacion_sap']; ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Fl Libera'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ordene['Ordene']['fl_libera']; ?>
			&nbsp;
		</td>
		</tr>		<tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Proyecto'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($ordene['Proyecto']['id'], array('controller' => 'proyectos', 'action' => 'view', $ordene['Proyecto']['id'])); ?>
			&nbsp;
		</td>
		</tr>	</table>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Editar Orden', true), array('action' => 'edit', $ordene['Ordene']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Eliminar Orden', true), array('action' => 'delete', $ordene['Ordene']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ordene['Ordene']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Lista de Ordenes', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nueva Orden', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Lista de Proyectos', true), array('controller' => 'proyectos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Serv. Relacionados', true), array('controller' => 'servordenes', 'action' => 'index')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Servicios Relacionados a esta Orden');?></h3>
	<?php if (!empty($ordene['Servordene'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ordene Id'); ?></th>
		<th><?php __('Servicio Id'); ?></th>
		<th><?php __('Posicion'); ?></th>
		<th><?php __('Cantidad'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ordene['Servordene'] as $servordene):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $servordene['id'];?></td>
			<td><?php echo $servordene['ordene_id'];?></td>
			<td><?php echo $servordene['servicio_id'];?></td>
			<td><?php echo $servordene['posicion'];?></td>
			<td><?php echo $servordene['cantidad'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Ver', true), array('controller' => 'servordenes', 'action' => 'view', $servordene['id'])); ?>
				<?php echo $this->Html->link(__('Editar', true), array('controller' => 'servordenes', 'action' => 'edit', $servordene['id'])); ?>
				<?php echo $this->Html->link(__('Eliminar', true), array('controller' => 'servordenes', 'action' => 'delete', $servordene['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $servordene['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Nuevo Serv. por Orden', true), array('controller' => 'servordenes', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
